package br.ufg.inf.espweb.sgca.service.impl;

import br.ufg.inf.espweb.sgca.dao.CursoDao;
import br.ufg.inf.espweb.sgca.dao.GenericDao;
import br.ufg.inf.espweb.sgca.model.Curso;
import br.ufg.inf.espweb.sgca.service.CursoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author diCastro
 */
@Service
@Scope("prototype")
@Transactional(propagation = Propagation.REQUIRED)
public class CursoServiceImpl extends GenericServiceImpl<Curso> implements CursoService{
    
    @Autowired
    private CursoDao cursoDao;
    
    @Override
    protected GenericDao<Curso> getDao() {
        return cursoDao;
    }
}
